package com.bao.demo.work.test01;

public class Designer extends Programmer{
    private double goodMoney;

    public Designer(){

    }

    public Designer(double goodMoney) {
        this.goodMoney = goodMoney;
    }

    public Designer(String id, String name, int age, int money, double goodMoney) {
        super(id, name, age, money);
        this.goodMoney = goodMoney;
    }

    public double getGoodMoney() {
        return goodMoney;
    }


    public void setGoodMoney(double goodMoney) {
        this.goodMoney = goodMoney;
    }
    @Override
    public String getInfo() {
        return super.getInfo()+", goodMoney="+goodMoney;
    }
}
